package com.spring.aop;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@Configuration
@ComponentScan("com.spring.aop")
//@EnableAspectJAutoProxy(proxyTargetClass = true)  //SpringBoot项目中这个注解可以不用加
@EnableAspectJAutoProxy(exposeProxy = true) // Spring会把当前的代理对象 存放在ThreadLocal中
public class AppConfig {


}
